package com.happok.onlineclass.usermanagement.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.happok.onlineclass.usermanagement.user.dataobject.UserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.io.Serializable;

/**
 * 功能说明
 *
 * @author : chenac
 * @version : v1.0
 * @date : 2021/7/14 16:15
 * @updateUser : chenac
 * @updateTime : 2021/7/14 16:15
 * @updateRemark : 无
 * @since : Springboot 2.5.2
 */
@Mapper
public interface UserDAO extends BaseMapper<UserDO> {
    @Select("SELECT head_portrait_id FROM user where id = #{id}")
    String getHeadPortraitId(Serializable id);

    @Select("SELECT enable FROM user where id = #{id}")
    Boolean getUserEnable(Serializable id);
}